//
//  ProjectDetailViewController.swift
//  test-ios
//
//  Created by wyz5204 on 2023/7/2.
//

import Foundation
import UIKit


class ProjectDetailViewController : MVVMBaseViewController<ProjectDetailViewModel>{
    
    private lazy var titleView = {
        return UILabel()
    }()
    
    override func initView(_ contentView: UIView) {
        super.initView(contentView)
        titleView.addTo(contentView) { view in
            view.snp.makeConstraints { make in
                make.center.equalToSuperview()
            }
        }
    }
    
    override func bindViewModel(_ viewModel: ProjectDetailViewModel) {
        titleView.setTitleAndColor(viewModel.project.name)
    }
}

class ProjectDetailViewModel : SimpleViewModel {
    
    let project : ProjectBean
    
    init(project: ProjectBean) {
        self.project = project
        super.init()
    }
}
